/*
 * Copyright (c) 2003
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.qtags.xdoc;

import org.generama.JellyTemplateEngine;
import org.generama.QDoxCapableMetadataProvider;
import org.generama.WriterMapper;

import org.xdoclet.plugin.qtags.AbstractQTagsPlugin;
import org.xdoclet.plugin.qtags.QTagUtils;

/**
 * create qutags documentation in xdoc format, so people who do not have confluence
 * gan get fancy html docs.
 * @author Aslak Helles&oslash;y
 * @version $Revision: 332 $
 */
public class QTagXDocPlugin extends AbstractQTagsPlugin {
    public QTagXDocPlugin(JellyTemplateEngine jellyTemplateEngine, QDoxCapableMetadataProvider metadataProvider,
        WriterMapper writerMapper) {
        super(jellyTemplateEngine, metadataProvider, writerMapper);
        setFilereplace("qtags.xml");
        setMultioutput(false);
    }

    public QTagUtils getQTagUtils() {
        return qTagUtils;
    }

    public boolean shouldGenerate(Object metadata) {
        return qTagUtils.shouldGenerate(metadata);
    }
}